package tm.pojo;

/**
 * @author Rocky
 * @create 2022-09-27 16:07
 */
public class QuestionOpstionPojo {
    private Integer id;
    private Integer questionId;
    private String optionA;
    private String optionB;
    private String optionC;
    private String optionD;

    public QuestionOpstionPojo() {
    }

    private QuestionOpstionPojo(Builder builder) {
        setId(builder.id);
        setQuestionId(builder.questionId);
        setOptionA(builder.optionA);
        setOptionB(builder.optionB);
        setOptionC(builder.optionC);
        setOptionD(builder.optionD);
    }


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getQuestionId() {
        return questionId;
    }

    public void setQuestionId(Integer questionId) {
        this.questionId = questionId;
    }

    public String getOptionA() {
        return optionA;
    }

    public void setOptionA(String optionA) {
        this.optionA = optionA;
    }

    public String getOptionB() {
        return optionB;
    }

    public void setOptionB(String optionB) {
        this.optionB = optionB;
    }

    public String getOptionC() {
        return optionC;
    }

    public void setOptionC(String optionC) {
        this.optionC = optionC;
    }

    public String getOptionD() {
        return optionD;
    }

    public void setOptionD(String optionD) {
        this.optionD = optionD;
    }

    public static final class Builder {
        private Integer id;
        private Integer questionId;
        private String optionA;
        private String optionB;
        private String optionC;
        private String optionD;

        public Builder() {
        }

        public Builder id(Integer val) {
            id = val;
            return this;
        }

        public Builder questionId(Integer val) {
            questionId = val;
            return this;
        }

        public Builder optionA(String val) {
            optionA = val;
            return this;
        }

        public Builder optionB(String val) {
            optionB = val;
            return this;
        }

        public Builder optionC(String val) {
            optionC = val;
            return this;
        }

        public Builder optionD(String val) {
            optionD = val;
            return this;
        }

        public QuestionOpstionPojo build() {
            return new QuestionOpstionPojo(this);
        }
    }
}
